<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Progressive Framework</title>
    <link rel="stylesheet" href="styles.css">
    <script type="text/x-template" id="unread-message-template">
        <div>You hava {{ unReadMessageCount }} messages</div>
    </script>
</head>
<body>
    <header>
        <h1>Welcome to NinjaVue Progressive Framework</h1>
    </header>
    <main>
        <section id="app">
            <h1>Hello {{user}}</h1>
            <unread-messages></unread-messages>
        </section>
    </main>
    <footer>
        <p>&copy; 2023 NinjaVue. All rights reserved.</p>
    </footer>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script src="app.js"></script>
    <script>
        const UnReadMessageComponent = {
            template: '#unread-message-template',
            setup() {
                return { unReadMessageCount: 4 }
            }
        }
        const RootComponent = {
            components: {
                UnreadMessages: UnReadMessageComponent
            },
            setup() {
                return { user: 'NinjaVue' }
            }
        }
        const app = Vue.createApp(RootComponent);
        app.mount('#app');
    </script>
</body>
</html>